<?php

/**
 * @author     Thibaut Cromphaut and Dimitry Dierickx
 * @copyright  Copyright (c) 2011 Safti-Kado
 */
class Application_Form_EditShelf extends Zend_Form
{

    public function init()
    {
        // shelf id
        $this->addElement('hidden', 'shelf_id', array(
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));

        // Veld 'Reklabel'
        $this->addElement('text', 'shelf_label', array(
            'label'      => 'Reklabel:',
            //'value'      => department_name,
            'required'   => true,
            'filters'    => array('StringTrim'),

        ));

        // Veld 'x-waarde'
        $this->addElement('text', 'shelf_x', array(
            'label'      => 'x-waarde',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));

        // Veld 'y-waarde'
        $this->addElement('text', 'shelf_y', array(
            'label'      => 'y-waarde:',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));
        
        // Veld 'Hoogte'
        $this->addElement('text', 'shelf_h', array(
            'label'      => 'Hoogte:',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));
        
        // Veld 'Breedte'
        $this->addElement('text', 'shelf_w', array(
            'label'      => 'Breedte:',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));
        
        // Veld 'Rek alpha'
        $this->addElement('text', 'shelf_alpha', array(
            'label'      => 'Rek alpha:',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));        
        
        // Knop 'Versturen'
        $this->addElement('submit', 'edit', array(
            'label'      => 'Opslaan',
        ));

        // CSRF-preventie (Cross-Site Request Forgery)
        $this->addElement('hash', 'no_csrf_registration', array(
            'salt' => 'unique',
        ));

    }
}